home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000735_pete@lovelace.…ni-frankfurt.de_Thu Jul 7 11:09:22 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  2KB

  1. Received: from riese.informatik.uni-frankfurt.de (riese.thi.informatik.uni-frankfurt.de) by cs.umb.edu with SMTP id AA28179
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 7 Jul 1994 03:08:29 -0400
  3. Received: from lovelace.informatik.uni-frankfurt.de (lovelace.thi.informatik.uni-frankfurt.de) by riese.informatik.uni-frankfurt.de (4.1/THI-peleuck2.1)
  4.     id AA03233; Thu, 7 Jul 94 09:09:23 +0200
  5. Content-Transfer-Encoding: binary
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Received: by lovelace.informatik.uni-frankfurt.de (4.1/SMI-4.1)
  8.     id AA09162; Thu, 7 Jul 94 09:09:22 +0200
  9. Date: Thu, 7 Jul 94 09:09:22 +0200
  10. From: pete@lovelace.thi.informatik.uni-frankfurt.de (Peter Dyballa)
  11. Message-Id: <9407070709.AA09162@lovelace.informatik.uni-frankfurt.de>
  12. To: tex-k@cs.umb.edu
  13. Subject: Improvement of epsf.c in xdvik-1.8
  14.  
  15. Hello!
  16.  
  17. I am testing a bit the capability of xdvik-1.8 to include PostScript graphics on its screen. So I found that xdvik teaches Ghostscript to dump bitmaps in /var/tmp or /usr/tmp. On our SPARCstation we have the ability to layout /tmp in RAM, just as the famous RAMdisk on an Atari or PC. Therefore I think it's better use the tempnam() system call instead of tmpnam(). tempnam() uses two string/pointer arguments, first one is the absolute pathname of the directory where the file should be created, second one is a short prefix which will be put in front of the temporary file's name. The call returns thew file's name, while tmpnam() returns the file's name and writes this name to the address of a character array (string) its argument is pointing to.
  18.  
  19. I am not sure whether tempnam() exists in more UNIX systems. If it does it's probably good to chage the code in epsf.c as shown below. Otherwise a #ifdef clause could be used ...
  20.  
  21. --- 346,354 ----
  22.        and other special support anyway, so don't bother. (24mar94)
  23.      */
  24.   
  25. ! /*  tmpnam(tempfilename);
  26. !           better create tmp file in RAMdisk as below: (07jul94) */
  27. !   strcpy(tempfilename,tempnam("/tmp/", ""));
  28.     sprintf(command, 
  29.         "(echo %d %d translate %f %f scale %f rotate; \
  30.   %s %s; \
  31.  
  32.  
  33.  
  34. Greetings
  35.  
  36. Pete
  37.  
  38. (Peter Dyballa)
  39.  
  40. Johann Wolfgang Goethe-Universit"at
  41. Fachbereich 20 - Theoretische Informatik
  42. (Department for Computer Science)
  43. Robert-Mayer-Str. 11-15
  44. D 60325 Frankfurt am Main
  45. (Federal Republic of Germany)
  46.  
  47. email:pete@thi.informatik.uni-frankfurt.de
  48. voice:0049-69-798 8224
  49. fax:  0049-69-798 8353